$(function() {
    var form = layui.form;
    form.render("select");

    renderArticle();

    function renderArticle() {
        $.ajax({
            url: "/my/article/list",
            data: {
                pagenum: 1,
                pagesize: 10,
            },
            success: function(res) {
                if (res.status === 0) {
                    $("tbody").html(template("tpl-article", res));
                }
            },
        });
    }
});